angular.module('elife.controllers')
  .controller('PolicyCtrl', function($scope, $state, $http) {
    var vm = this;
    $scope.goPolicyDetail = function() {
      $state.go('policyDetail');
    };
    vm.getPolicyList = function() {
      $http.get('pages/my/policy/policy-list.json').success(function(result){
        vm.policyList = result.data
      })
    };
    vm.getPolicyList();
  });
